
package com.xinmao.quantitative.repository;

import com.xinmao.quantitative.entity.FundEntity;
import com.xinmao.quantitative.entity.Stock5Entity;
import com.xinmao.quantitative.entity.StockDayEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


/**
 * @Title: StockDayRepository
 * @Author: XYe13
 * @Date: 4/30/2024 13:06
 */

public interface FundRepository extends JpaRepository<FundEntity, Integer> {

    StockDayEntity findByCodeAndDateAndStockPeriod(String code, String date,String period);

    List<StockDayEntity> findByCodeAndDateAndStockPeriodBetweenOrderByDateAsc(String code, String startDate, String endDate,String period);
}

